package com.lago.homework2.exercise3;

public class interPackage implements InterServerInterface{
    private int interData;
    private int mouthFee;

    public interPackage() {
    }

    public interPackage(int interData, int mouthFee) {
        this.interData = interData;
        this.mouthFee = mouthFee;
    }

    public int getInterData() {
        return interData;
    }

    public void setInterData(int interData) {
        if (interData >= 0) {
            this.interData = interData;
        }else {
            System.out.println("流量不合理呀！");
        }
    }

    public int getMouthFee() {
        return mouthFee;
    }

    public void setMouthFee(int mouthFee) {
        if(mouthFee >= 0) {
            this.mouthFee = mouthFee;
        }else {
            System.out.println("月租不合理呀！");
        }
    }
    public void show(){
        System.out.println("流量：" + interData + "月租：" + mouthFee);
    }

    @Override
    public void call(int interData, String cardType) {

    }
}
